﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NENAData.Factory;
using NENAData.LINQ;

namespace NENAData.NENAProvinces
{
    class MembersCommittee
    {
        private static MembershipDataContext GetMembershipDB()
        {
            var x = new SQLMembership();
            return x.GetMembershipDB();
        }
        public Members_Committee MemberCommitteeDetails(int intMemberId)
        {

            MembershipDataContext db = GetMembershipDB();
            var MemberContact = (from dp in db.Members_Committees
                                 where dp.ID == intMemberId
                                 select dp).FirstOrDefault();

            return MemberContact;
        }
    }
}
